package unamur.iodass.config;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


import unamur.iodass.catalog.RetreiveAllCatalogs;
import unamur.iodass.communication.Communication;
import unamur.iodass.communication.Server;


public class Initialisation implements ServletContextListener{
	private static final Logger logger = Logger.getLogger(Initialisation.class);


	@Override
	public void contextInitialized( ServletContextEvent event ) {
		
		// lancement du serveur
		Communication com = Communication.getInstance();
		com.startServer();	

	}

	@Override
	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

}
